<%--
  Created by IntelliJ IDEA.
  User: strong
  Date: 2021/7/22
  Time: 14:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>AddProduct</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/library/lib/layui-v2.5.5/css/layui.css" media="all">
    <link rel="stylesheet" href="/library/css/public.css" media="all">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body>

<form class="layui-form" action="/addProductSubmit" method="post" enctype="multipart/form-data">

    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label" required>商品图片</label>
        <div class="layui-input-block">
            <input type="file" name="file" lay-verify="required" lay-reqtext="请上传图片">
        </div>
    </div>


    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">商品名称</label>
        <div class="layui-input-block">
            <input type="text" name="goods_name" lay-verify="required" lay-reqtext="用户名是必填项，岂能为空？" placeholder="请输入"
                   autocomplete="off" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">库存</label>
        <div class="layui-input-block">
            <input type="text" name="goods_count" lay-verify="required" lay-reqtext="库存是必填项，岂能为空？" placeholder="请输入"
                   autocomplete="off" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label" >商品价格</label>
        <div class="layui-input-block">
            <input type="text" name="goods_price" lay-verify="required" lay-reqtext="价格不能为空" placeholder="￥" autocomplete="off" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">商品描述</label>
        <div class="layui-input-block">
            <textarea placeholder="请输入内容" class="layui-textarea"  name="goods_des"></textarea>
        </div>
    </div>

    <div class="layui-form-item layui-form-text">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="submit">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <div class="layui-input-block">
            ${msg}
        </div>
    </div>
</form>

</body>
</html>

